]> dgit.raspbian.org Git - gnome-shell.git/commit
params: Fix regression
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 5 Jul 2019 16:10:56 +0000 (18:10 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 5 Jul 2019 16:28:26 +0000 (18:28 +0200)
commit8a5de327bb59850ad914dcceb683e275b577d83d
tree780a0f9b16055f2b5f57b840d786230b2d84a631
parent1778adae0d029a53e35c219098def8382040711c
params: Fix regression

The first parameter to Object.assign() is the same target object that
will be returned. That is, since commit 46874eed0 Params.parse() modifies
the @defaults object. Usually we pass that parameter as an object literal
and this isn't an issue, but the change breaks spectacularly in the few
cases where we use a re-usable variable.

Restore the previous behavior by copying the object first.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/615
js/misc/params.js